<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>flex</title>
    <style>
        .box {
            display: flex;
            width: 500px;
            height: 300px;
            background-color: orange;
            /* flex-direction: row; */
            /* flex-direction: row-reverse; */
            /* flex-direction: column; */
            /* flex-direction: column-reverse */

            /* flex-wrap: wrap; */
            flex-wrap: wrap-reverse;
        }

        .item {
            width: 100px;
            height: 100px;
            color: #fff;
        }

        .item1 {
            background-color: #f00;
        }

        .item2 {
            background-color: #0f0;
        }

        .item3 {
            background-color: #00f;

        }
    </style>
</head>

<body>
    <div class="box">
        <div class="item item1">左</div>
        <div class="item item2">中</div>
        <div class="item item3">右</div>
        <!-- 演示 flex-wrap -->
        <div class="item item1">flex-wrap1</div>
        <div class="item item2">flex-wrap2</div>
        <div class="item item3">flex-wrap3</div>
        <div class="item item1">flex-wrap4</div>
        <div class="item item2">flex-wrap5</div>
        <div class="item item3">flex-wrap6</div>
    </div>
</body>

</html>